<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<sec:authorize ifAnyGranted="ROLE_BUYER,ROLE_SELLER,ROLE_ADMIN">
	<c:url var="actionUrl" value="/postings/addBid.html" />
	<form:form action="${actionUrl}" modelAttribute="bid">
		<fieldset class="row1">
		<div class="form-pair">	
			<div class="form-item">
				<label for="bid">New max bid: US $</label>
			</div>
			<div class="form-value">
				<form:input path="price" size="10" maxlength="10"/><br /><form:errors path="price" cssClass="errors" />
				<c:if test="${not empty param.bidnotaccepted}">
					<span class="errors">Placed bid is smaller than the current bid. Please try again.</span>
				</c:if>
			</div>
		</div>
		</fieldset>
		<fieldset class="form-submit">
		<div class="form-submit-buttons">
			<input type="submit" id="placebid" class="input-submit" name="submit" value="place bid" />
 		</div>
		</fieldset>
	</form:form>
</sec:authorize>